added rank stuff...