code optimization
untabify
handle missings
minor