cleaning up stk implementation