added round(q/p)