diff --git a/userprog/syscall_remove.c b/userprog/syscall_remove.c
index 80dfe36c037fbf7948cd5ba23817847a5302ed87..0b8d308cc49e759c008275f9b9eaba0c4a5bdab6 100644
--- a/userprog/syscall_remove.c
+++ b/userprog/syscall_remove.c
@@ -13,9 +13,9 @@
 #include "filesys/file.h" // Dependency for and file struct
 #include "filesys/filesys.h" // Dependency for filesys_remove
 
-void syscall_open(struct intr_frame *f) {
+void syscall_remove(struct intr_frame *f) {
 	// pop off first int argument from interrupt frame
-	char* file_name = (void*)(*(int*)f->esp + 1);
+	char* file_name = (void*)*((int*)f->esp + 1);
 	// Described in filesys.h, opens the file
 	if (filesys_remove(file_name) == false) { // Checking if file is empty or non-existent
 		f->eax = false; // Returning a failure state
diff --git a/userprog/system_calls.h b/userprog/system_calls.h
index e5dafe51c60849a38b0b213b2d042507ce289e1d..8dc87c9d325a52ee224a1597b3bfd7877553cf5a 100644
--- a/userprog/system_calls.h
+++ b/userprog/system_calls.h
@@ -55,7 +55,7 @@ void syscall_open(struct intr_frame *f);
  * Removing an open file does not close it. See Removing an Open File, for
  * Details.
  */
-void syscall_open(struct intr_frame *f);
+void syscall_remove(struct intr_frame *f);
 
 /*
  * special additional stuff for handling file descriptors because they're annoying