Both ways you are doing the same