added logic things

recompilation of tex necessary!