add the islastmap method