removes unecessary copy