refactored voted_user select