reduce duplication by using serial map for serial compile