works when pointing to the references of fields