fast weight calculation
nippy for serialisation