testing the codes