recorrect function