testing if rank works