added margin to start thread