suppress warnings and clean up codes