removed test function