avoid mixing pt and px