DN: first version of first half (no js)