Why is the same thing being done twice with different method?