narrowing code for publication