hardcoded n as 10000 for now