add search magic number function