adding weight logging