replaced hardcoded values through vars