defineGetAndSet method  performance update