added checkarray