changes mod 6 to 7