map functions separated into new file