fixed typos and passed tests