map => map! for stopping extra array creation

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