replaced hardcoded values with variables