added copy line functionality