replaced hardcoded numbers with constants