remove warnings and errors