added dom stuff