tern: simplify