finalizing weights