remove warnings from code