added debuging comment into functions