mind adding a short header comment here, since this is now a separate function?