what does this function do ?
custom,js,  line 1