updated main and ranking