changed the quicktest code slightly to be a little clearer