refactored sub block cipher using nesting