change position parameter.
finish main logic.