Clean and refunction
Domain function