copy function implemented
line base copy paste implemented