integrated chotus code and my code