remove duplicate method calls