check to see if functions are in the right place