creating the debug function
adding color model and the debug call to the nav model