changed schedule return type