A precise mass function in the excursion set approach