removed memory copy