used for c testing