checks boolean flag to draw insert beat
todo to fix the width problem
trying fix the width problem