removed outside distance transform