forgot to declare variable in method