made callConstraint method
added queries