calculator ALMOST works right...