added legend to scheduler