added -1 to addMultipleItems conditional for obvious reasons