remove extra var declaration in example