maked fn a cdef for now