remove unnecessary data