removing unnecessary items