hard coded limits in code, moved to constants.