checking id and arraynum