complete array functions