extended valuevontainer algorithm