refactored removing inventory borders