changed API to SP