remove deprecate warning from @get and @set