fix errors y warnings