added new method and tests