created a variable to check function