bugfix corrected: read weights