rewrite to functions.