got the references working