Fixed edge condition for 256-periodic sample and checking that