resolve 2 warnings