implement the function of go-home