removing unnecessary data