think i fixed reference issues