fixing shore finding.