remove unnecessary entries