added badge awarding based on metric