added function to domain