moved append to the end