fixed iteration printiing in the scp method class