fixed reference problem