loop stopped working, debugging.