exists method added and changed the Method definition