added functionality to check for and return tied candidates