added filter on the temporary directory