added the 3rd case to q4