make sure to declare Entry as a local variable.