remove repeated steps