factor out division by hand. no regression introduced