hw2 part 3 empty session fix