Replaced 1/-1 with constants