* use getNextCont()
* simplify
* coding guidelines