data.schedule should be data[schedule]