replaced parseInt(..., 0) with Number(...)