improve ajax fact method