added clearance feature (incomplete)