add c version parallel