update for weights creation