match keys only once