fixed debugging