remove origin at the end