added some validation to be done in gen..numeric_profile
added test cases