fix rewrite maybe?