adding position handling