change unless blocks to if not blocks