changes hardcoded lists to functions