replaced hardcoded value with variable