sends required pid param to function.