fix the tailing function