finalize ml-class:)