modified #karma to take downvotes into account