fixed bug (comment out code) in signed distance