moving the function around