indices must be a array