what happens if parseInt blows up here? It seems we should check for NaN issues.