rewrite a little