added wrapper function