modified pos: int <-> struct