fixed and added HINT case3