adding position information to more ast elements