fix errors, pass 1 test