[MOD] rewrite content before demo for function