fixed divison parsing logic