And correspondingly edit by array