removing dom dependency