random line fixing