updated parsing formula