removing redundant data