removed expensive slice copying