added the method to call the if statement