rewrite functions on Behavior