removing method attribute