extracted position management from item to external file