added simulation program to debug