finished function pos_real