added rank to processing