map => map! for stopping extra array creation

instead of map we use map! for stopping extra array creation