removing redundencies