update magic number