working BlockProcessor and cleaned up trailing whitespace