reference problem solved