remove duplication in method call