using config instead of hardcoding values.