console logging added