prepareCompletion will prepare completion.

all tests passed.