better solution for TailType in package completion