hasType() and applyFor() methods are added
update