more code for inspector+barlines