make codes looks better for entry and exit for every function