removed test function;