add paper ratio function.