add inertia and borders