replace some numbers with global constants so that the code is easier to port to other schools