fix errors
works