removed some hard-coded values, a const variable was used instead