now really fix median