clearData implemented