[UPDATE] change instance method by attributes