created script to get the first mip