a bit more of upsert rating completed. still in progess