deleted old stuff, trying to use rotation
okay, trying to fix error detection