changed 'buffer' to 'junk'