replace numbers with constants