array util methods