added logging of mccabe number