missed adding param to function