add logic to reset block