logger functions
added comments
added little details