put confident functions into a separate module