array functions update