replace hard coded numbers with constants