changed const to var
merged with travis