wrote reverse()