a few functions was added.