work on html compatibility