learning algo diagnostics added