removed unused test function