corrected array checks + method-name