edit instance method