bag problem