add get element fn