add method and add test