checking to see if a function is made properly