added setting of redstone condition