taking itemstack amount into account