network works but not learn