% convert while testing all possible outputs