function completed.