adding logging methods