work on the maths and subBytes sections