my point is that this method looks messy, not because of complexity but because log method is executed