changes to var selection, and warning messages for var argument