added paste mode