modified spro algorithm