saving ranking moved to mapper