remove duplicate statements