discard the non-existing entries