testing dan's machine