added some comments in new functions