improvements from first real operation
added ranking