add parseInt to gold check