input and rankingslists more or less done