What is the different between these two methods ? They seem to be achieving the same thing.