added invisible redstone logic