added time limit for program selection