adding method handler