validation added for threshold limit