removed useless memcpy