erase overlay sample code