removing assignment to n as it is never used