added 8 bars and correct bar functionality