the function name does not really make clear what this function is for. maybe you could come up with a better name?