bug fix with addPos method