almost there but filtering is not working