use function instead of field to access required value