removed test function.