add go ahead and back function