reworked border collision and size modification