improved function completion advice.

prevented duplicates.