court’s failure to provide a referral