implements copy paste for line