updated function name and docs