Array is working fine