changed a few lines, lines get into map correctly