basic generate + magic number erased