updated helper validation