map to integer