references fixes