remove unnecessary items