added utility method.