cc-bmean: re-ordering functions. removing old comments