correct bag and improve