added check for schedule mode