begin rewrite with simple test.