do we need this indirection? or could we just remove this function?