fixed stuching bug, added pritn statments