need to fix errors