references should be automatically dereferenced