removing unnecessary attributes