intermediate commit - introduce another variable to track attachments