fix color calculation and color sorting
version increment