commented a few functions