change parseInt by Number casting for performance
merge