implemented skipping of opened cells