use better solution to prevent domain collision and keep better performance