check for functions