code quality.. extracted some numbers into constant variables