added radix parameter to all parseInt calls