replacing some functions with constants