add rating macro