- simul code
- added output to tabs