changing 7 to Nth