add method fromTo close #40