use sir function
added wrapping system call