trying to add a function to an if statement