calc_first() implemented