annotate few functions in core