removed n variable