fix only positive numbers allowed in array input