finally added norm and width search