completely add func of adding session to myprogram