updated clear() function