revised container comparison