rewrote update recommendations method