Correct gen and print stuff in mapper