cosmetic fix and memcpy