rm useless function, fix check on goforward