setPath method added