added padding to get centroids aligned in compare