discrete environment debugged :)