updates getters and setters in both body and constructors