deleted old array code