work in progress: validate result input