solve many warnings