fix for inside

* with explanation