removing useless data