fix to many warnings