minor changes to SP