add breaker to functions