remove unnecessary clone usage