position wrapping
coding done