rewrite of test