dibuging the code