fix pointer calling
Fix compile issues with reversal.c