in the library Serenity CN computation has become an indepdendent function