modif to bar model