add method attribute