created mapping thread to hold mapping algorithm