php to send rating at end
merge