add comment and change function to clearer name.