use settings instead of hardcoded value