modified parser to limit precision