Reducing the risk of accidents through barrier design