got references working.