removed debug message and suppressed warnings