extending local functions