set rating before setting callback