seperate function from CComplete class