changed rewrite module type