blender's mirror modifier not working how I want it to
Actually it was just because the pivot point was not at the middle of my object, because before I had deleted the vertices which did not delete the whole object keeping the pivot point at the same place.