optimized output (short ssb times); cleaned code