implemented key filter