updating syscall for parts 3 and 4