renamed i function to n