fix square fct