speed and layout stuff