added function to test