Removed extraneous code in candidates_helper