remodelled checkMethods()
changed checkMethods() to checkMethod()