refactory processor for different processor type