add checks for variables