working with kill
dynamically allocated string