clear functionality