references throws an error