both maps work with boundaries