seperate out mapping code