using correct id filter and parameter received by reference