fixed inset/outset calculation