tried to fix errors