remove unused function
update upgrade docs