ex5 need more debug