out of bounds error with generator cases
refactored
started writing tests for simplify