removed double logging