fixing domain problem