position adjustment code