remove unnecessary wrapper function