more work with maxdet