use true rounding instead of taking floor
remove dead code
export build