properly extract result