add a standard position function