remove warning in code