passing attributes to __result