optimization of working with processor