added type to processed_by