delete unneccesary data