removed duplicate logging