optimization of prioritezator