edited display and logic to get bars