removed old test function