adding getters and setters at the right spot