updating train full network