commented the function