added signed dist field calc