changes in algo for getting programs on day and time basis