ellipses
prepare data for optimization