remove notices dealing with assigning by reference