included a check for variables that are integers type