improve math rspec
fix bugs
fix unless bugs