now works for values up to n