printing array error