get schedule id function added