Change object call to array call