fixed warning and removed log output