work towards k_means pallette