pass store id param to new function