fixed the use of DO function