fixing sort, adding time slots