mapSerial support modifications on given arr