remove unused logger
blogStream;
escape from for-loops by refactoring