change the memcopy to float