the scheudle logic is ok