checking for requirements in code