implemented bit rot pattern