counter moving logic
counter moving logic