add test print code to debug