forgot to declare variable
fix an error or two