fix for Ex2: added mirroring. still nonfunctional cases