cleaned up processor.py