processor algorithm added