working on color magnitude diagram