Changed array manipulation operation