!important! algorithm changes
Performance improved (4 times)