adding prevent to goto calls