added some comments for new code