debug for ex6 and finally pass