move stk helper function to source file