make function adding schedule
a