add get set function for objetc