replacing hardcoded values with var