change hardcoded to value from config