add position information to types