double squares problem solved