home page - rank query fixed