made createline method