added clearing function to goa