working version using and chunking clear property