handler may change array