giving the function instructions