fixing goTo method