implemented user filtering