eliminate repeated method calls