additon of logging methods and decorator