finished simple version of auto schedue