corrected loop in ch.createSP