remove warnings in code