fixed call to distinct c ccode, which segfaults