and when all was finished the treasure of doriath was drowned in the river ascar , and from that time the river was named anew , rathloriel , the goldenbed ; but beren took the nauglamir and returned to tol galen .