added function for testing