removing redundant steps