replaced hardcoded numbers with constant