add get to function