store result in field instead of local var