another debugging of the code