imertia tensor calculation modified