debug for issue 1(failed in mac os x)