modified stuff for sokp