complete main part.

fyi.