Simplified transposition code