working on rm sys call