working on checkPrerequisite()