IVY setting up for a function