improved version of david's plausibility checker algorithm