modified both test programs