test of cleaned code, debug statements added (don't use it finally!)