removed unnecessary options property, and removed a duplicate var binding