added functions in core