added new method and test