initial add of rankall function