what does this function do? comment/