trying rewrite base