some error is happening here

tried to fix them, take a look, i think its working how it's suppose to