References replaced with constants

References replaced with constants