updating getter/setter to ecmascript 5