deleted unnecessary test function