slowdown code for Linux