square-rainbow-opt