removed parseInt in favor of bitwise operators.