fix for bw_encode + more results