we should be using var when declaring variables, it prevents scoping problems later