removes global variable newItem