deleted unnecessary method to set the line