added test function;