added magic line before drawing line