adding funcectry and funcexit