fixed PU weights, added a function for printout