added reduc code generator for remaining blocks