relies on being lucky with overflow, slow (90s)
fix please