inner function of map  returns arr with one additional string element pushed on