changed hardcoded values to variables