fix typos and bug with scope
write some test