nc2 algo added