added function to testdriver