modified to have a smaller smap